﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO.Ports;
using Utils;

namespace ModbusTest.Config
{
    public class Configer
    {
        COM_Configer cfgPLC1 = new COM_Configer() {  _Name="COM1", _BuadRate="115200",_DataBits="8",_Parity="None",_StopBits="One"};
        COM_Configer cfgPLC2 = new COM_Configer() { _Name = "COM2", _BuadRate = "115200", _DataBits = "8", _Parity = "None", _StopBits = "One" };
        COM_Configer cfgPLC3 = new COM_Configer() { _Name = "COM3", _BuadRate = "115200", _DataBits = "8", _Parity = "None", _StopBits = "One" };
        COM_Configer cfgKQ = new COM_Configer() { _Name = "COM4", _BuadRate = "9600", _DataBits = "8", _Parity = "None", _StopBits = "One" };
        public COM_Configer Config_PLC1_COM { get { return cfgPLC1; } set{cfgPLC1=value;} }
        public COM_Configer Config_PLC2_COM { get { return cfgPLC2; } set { cfgPLC2 = value; } }
        public COM_Configer Config_PLC3_COM { get { return cfgPLC3; } set { cfgPLC3 = value; } }
        public COM_Configer Config_KQ_COM { get { return cfgKQ; } set { cfgKQ = value; } }
    }
}
